package com.sw.bbs.board.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sw.bbs.common.constant.BBSConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("帖子")
@Data
public class Post {
    
    @ApiModelProperty("帖子ID")
    private Integer postId;

    @ApiModelProperty("帖子标题")
    private String title;

    @ApiModelProperty("类型 1.普通贴文 2.投票 3.视频 4.图片")
    private String type;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT, timezone= BBSConstant.DATE_TIMEZONE)
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT, timezone= BBSConstant.DATE_TIMEZONE)
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    private Date updateTime;

    @ApiModelProperty("封面URL")
    private String coverUrl;

    @ApiModelProperty("标签，用,隔开")
    private String tags;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("结构")
    private String resolveInfo;

    @ApiModelProperty("阅读量")
    private Integer readNum;

    @ApiModelProperty("点赞量")
    private Integer likeNum;

    @ApiModelProperty("点贬低量")
    private Integer dislikeNum;

    @ApiModelProperty("收藏量")
    private Integer collectNum;

    @ApiModelProperty("关注量")
    private Integer followNum;

    private Integer level;

    private Integer reward;

    private Integer anonymous;

    private Integer isDraft;

    private String otherInfo;


}